package com.landinfo.repository;

import com.landinfo.domain.DashboardConfiguration;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;


/**
 * Spring Data  repository for the DashboardConfiguration entity.
 */
@SuppressWarnings("unused")
@Repository
public interface DashboardConfigRepository extends JpaRepository<DashboardConfiguration, String>,CrudRepository<DashboardConfiguration, String> {

    Optional<DashboardConfiguration> findByName(String name);

//    @Transactional
    void removeByName(String name);
}
